List Groups In Active Directory to TXT
This Powershell script will list all groups in AD and output to a TXT file.
CODE:
import-module ActiveDirectory
$groups = Get-ADGroup –Filter * | Select Name
foreach ($group in $groups){
$group.Name | Out-File -append groups.txt
}
Use at your own risk
Download:
List Groups In Active Directory to TXT.zip
Tag(s):
Powershell Could you spare a few coins?
Dogecoin - D838u1m9YRdzVVu8CZ1JsR78WHgQmUZSr8
Bitcoin - 13iKLoPXcWEYcGtqCi4UcjGQEs7r6M6LFc
Thank you